package com.xunyin.modules.pay;

import com.xunyin.modules.user.domain.YxUser;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 支付相关业务接口
 * <p>
 * Created by xunyinyunshang <3594419785@qq.com>
 * CopyRight 讯音云商 https://www.tonetn.com
 */
public interface PaymentService {

    /**
     * 创建支付单
     */
    //ResponseObject createPrepayOrder(YxUser userInfo, MtOrder orderInfo, Integer payAmount, String authCode, Integer giveAmount, String ip, String platform);

    /**
     * 支付回调
     */
    //Boolean paymentCallback(UserOrderDto orderInfo);

    /**
     * 订单支付
     */
    Map<String, Object> doPay(HttpServletRequest request, YxUser user);

}